<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>医生添加页面</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
    <link href="/css/style1.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
</head>
    <style>
        label{
            text-align: center;
        }
        .form-group{
            margin-bottom: 10px;
        }
    </style>
<body>
<div th:insert="~{admin/header1}"></div>
<main id="main">
    <section class="breadcrumbs">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <ol>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">添加医生</a></li>
                </ol>
            </div>
        </div>
    </section>
<section class="inner-page">
        <div class="container">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title mb-1">添加医生</h3>
                </div>
                <div class="card-body mt-2">
    <form th:action="@{/doctor/addDoctor}"
          name="myform" method="post"
          th:object="${doctor}"
          class="form-horizontal"
          enctype="multipart/form-data" >

        <div class="form-group d-flex ">
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;名&nbsp;字:</label>
            <div class="col-sm-4 col-md-4">
                <input type="text" class="form-control"
                       placeholder="请输入医生名字"
                       th:field="*{name}"/>
            </div>
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;电&nbsp;话:</label>
            <div class="col-sm-4 col-md-4">
                <input type="text" class="form-control"
                       placeholder="请输入电话"
                       th:field="*{phone}"/>
            </div>
        </div>
        <div class="form-group d-flex">
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;密&nbsp;码:</label>
            <div class="col-sm-4 col-md-4">
                <input type="text" class="form-control"
                       placeholder="请输入医生密码"
                       th:field="*{pwd}"/>
            </div>
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;职&nbsp;称:</label>
            <div class="col-sm-4 col-md-4">
                <input type="text" class="form-control"
                       placeholder="请输入医生职称"
                       th:field="*{job}"/>
            </div>
        </div>
        <div class="form-group d-flex">
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;详&nbsp;情:</label>
            <div class="col-sm-4 col-md-4">
                <input type="text" class="form-control"
                       placeholder="请输入医生详情"
                       th:field="*{note}"/>
            </div>
            <label class="col-sm-2 col-md-2 control-label">医生挂号费:</label>
            <div class="col-sm-4 col-md-4">
                <input type="number" class="form-control"
                       placeholder="请输入医生挂号费"
                       th:field="*{fee}"/>
            </div>
        </div>
        <div class="form-group d-flex">
            <label class="col-sm-2 col-md-2 control-label">医&nbsp;生&nbsp;头&nbsp;像:</label>
            <div class="col-sm-4 col-md-4">
                <input type="file" placeholder="请选择图片"  class="form-control" name="fileName"/>
            </div>
            <label class="col-sm-2 col-md-2 control-label">所&nbsp;属&nbsp;科&nbsp;室:</label>
            <div class="col-sm-4 col-md-4">
                <select class="form-control" th:field="*{dId}">
                    <option th:each="dp:${departments}" th:value="${dp.id}" th:text="${dp.dName}">
                </select>
            </div>
        </div>
        <div class="form-group text-center">
                <button type="submit"class="btn btn1" >添加</button>
                <button type="reset" class="btn" >重置</button>
        </div>
    </form>
                </div>
</div>
        </div>
    </div>
</section>
</main>
</body>
</html>